<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="__ADMIN_CSS__/bootstrap.min.css">
</head>
<body>
<table class="table table-bordered table-builder table-response">
    <tr>
        <td>发送人</td>
        <td>{$send}</td>
    </tr>
    <tr>
        <td>发送时间</td>
        <td>{$time}</td>
    </tr>
    <tr>
        <td>消息标题</td>
        <td>{$title}</td>
    </tr>
    <tr>
        <td>内容</td>
        <td>{$content}</td>
    </tr>
    {if condition="$status eq 1"}
    <tr>
        <td>回复</td>
        <td>{$response}</td>
    </tr>
    {/if}
    {if condition="$status eq 0 and $role eq 3" }
    <tr>
        <td colspan="2">
            <a id="res" href="{:url('responseLeaderMsg',['id' => $id])}">
                回复消息
            </a>
        </td>
    </tr>
    {/if}

</table>
</body>
</html>
<script>
    var res = document.getElementById('res');
    res.onclick = function(e){
        e.preventDefault();
        top.location.href = res.href;
        window.close();
    }
</script>